package com.example.domain.db.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "SysLogPO", description = "sys_log表实体对象")
public class SysLogPO implements Serializable {
    /**
     * BIGINT(19) 必填
     * 唯一标识
     */
    @ApiModelProperty(name = "logId", value = "唯一标识")
    private Long logId;

    /**
     * VARCHAR(256)
     * 请求的API接口路径
     */
    @ApiModelProperty(name = "apiPath", value = "请求的API接口路径")
    private String apiPath;

    /**
     * VARCHAR(256)
     * 请求的API接口文案说明
     */
    @ApiModelProperty(name = "apiName", value = "请求的API接口文案说明")
    private String apiName;

    /**
     * VARCHAR(10)
     * 请求API接口的方式
     */
    @ApiModelProperty(name = "apiMethod", value = "请求API接口的方式")
    private String apiMethod;

    /**
     * BIGINT(19)
     * 用户ID
     */
    @ApiModelProperty(name = "userId", value = "用户ID")
    private Long userId;

    /**
     * VARCHAR(36)
     * 用户名称
     */
    @ApiModelProperty(name = "userName", value = "用户名称")
    private String userName;

    /**
     * VARCHAR(256)
     * bean方法
     */
    @ApiModelProperty(name = "beanMethod", value = "bean方法")
    private String beanMethod;

    /**
     * BIGINT(19) 默认值[0] 必填
     * 消耗时间
     */
    @ApiModelProperty(name = "elapsedTime", value = "消耗时间")
    private Long elapsedTime;

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 创建时间
     */
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Date createTime;

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 更新时间
     */
    @ApiModelProperty(name = "updateTime", value = "更新时间")
    private Date updateTime;

    /**
     * LONGVARCHAR(16777215)
     * 请求的API参数
     */
    @ApiModelProperty(name = "params", value = "请求的API参数")
    private String params;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sys_log
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * BIGINT(19) 必填
     * 获得 唯一标识
     */
    public Long getLogId() {
        return logId;
    }

    /**
     * BIGINT(19) 必填
     * 设置 唯一标识
     */
    public void setLogId(Long logId) {
        this.logId = logId;
    }

    /**
     * VARCHAR(256)
     * 获得 请求的API接口路径
     */
    public String getApiPath() {
        return apiPath;
    }

    /**
     * VARCHAR(256)
     * 设置 请求的API接口路径
     */
    public void setApiPath(String apiPath) {
        this.apiPath = apiPath == null ? null : apiPath.trim();
    }

    /**
     * VARCHAR(256)
     * 获得 请求的API接口文案说明
     */
    public String getApiName() {
        return apiName;
    }

    /**
     * VARCHAR(256)
     * 设置 请求的API接口文案说明
     */
    public void setApiName(String apiName) {
        this.apiName = apiName == null ? null : apiName.trim();
    }

    /**
     * VARCHAR(10)
     * 获得 请求API接口的方式
     */
    public String getApiMethod() {
        return apiMethod;
    }

    /**
     * VARCHAR(10)
     * 设置 请求API接口的方式
     */
    public void setApiMethod(String apiMethod) {
        this.apiMethod = apiMethod == null ? null : apiMethod.trim();
    }

    /**
     * BIGINT(19)
     * 获得 用户ID
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * BIGINT(19)
     * 设置 用户ID
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * VARCHAR(36)
     * 获得 用户名称
     */
    public String getUserName() {
        return userName;
    }

    /**
     * VARCHAR(36)
     * 设置 用户名称
     */
    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    /**
     * VARCHAR(256)
     * 获得 bean方法
     */
    public String getBeanMethod() {
        return beanMethod;
    }

    /**
     * VARCHAR(256)
     * 设置 bean方法
     */
    public void setBeanMethod(String beanMethod) {
        this.beanMethod = beanMethod == null ? null : beanMethod.trim();
    }

    /**
     * BIGINT(19) 默认值[0] 必填
     * 获得 消耗时间
     */
    public Long getElapsedTime() {
        return elapsedTime;
    }

    /**
     * BIGINT(19) 默认值[0] 必填
     * 设置 消耗时间
     */
    public void setElapsedTime(Long elapsedTime) {
        this.elapsedTime = elapsedTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 获得 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 设置 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 获得 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 设置 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * LONGVARCHAR(16777215)
     * 获得 请求的API参数
     */
    public String getParams() {
        return params;
    }

    /**
     * LONGVARCHAR(16777215)
     * 设置 请求的API参数
     */
    public void setParams(String params) {
        this.params = params == null ? null : params.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_log
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", logId=").append(logId);
        sb.append(", apiPath=").append(apiPath);
        sb.append(", apiName=").append(apiName);
        sb.append(", apiMethod=").append(apiMethod);
        sb.append(", userId=").append(userId);
        sb.append(", userName=").append(userName);
        sb.append(", beanMethod=").append(beanMethod);
        sb.append(", elapsedTime=").append(elapsedTime);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", params=").append(params);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_log
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysLogPO other = (SysLogPO) that;
        return (this.getLogId() == null ? other.getLogId() == null : this.getLogId().equals(other.getLogId()))
            && (this.getApiPath() == null ? other.getApiPath() == null : this.getApiPath().equals(other.getApiPath()))
            && (this.getApiName() == null ? other.getApiName() == null : this.getApiName().equals(other.getApiName()))
            && (this.getApiMethod() == null ? other.getApiMethod() == null : this.getApiMethod().equals(other.getApiMethod()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
            && (this.getBeanMethod() == null ? other.getBeanMethod() == null : this.getBeanMethod().equals(other.getBeanMethod()))
            && (this.getElapsedTime() == null ? other.getElapsedTime() == null : this.getElapsedTime().equals(other.getElapsedTime()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getParams() == null ? other.getParams() == null : this.getParams().equals(other.getParams()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_log
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLogId() == null) ? 0 : getLogId().hashCode());
        result = prime * result + ((getApiPath() == null) ? 0 : getApiPath().hashCode());
        result = prime * result + ((getApiName() == null) ? 0 : getApiName().hashCode());
        result = prime * result + ((getApiMethod() == null) ? 0 : getApiMethod().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
        result = prime * result + ((getBeanMethod() == null) ? 0 : getBeanMethod().hashCode());
        result = prime * result + ((getElapsedTime() == null) ? 0 : getElapsedTime().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getParams() == null) ? 0 : getParams().hashCode());
        return result;
    }
}